package com.ssy.lingxi.order.model.bo;

import java.io.Serializable;
import java.util.Objects;

/**
 * 供应商会员与角色BO
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-07
 */
public class VendorBO implements Serializable {
    private static final long serialVersionUID = -588277923618554078L;

    public VendorBO() {
    }

    public VendorBO(Long vendorMemberId, Long vendorRoleId) {
        this.vendorMemberId = vendorMemberId;
        this.vendorRoleId = vendorRoleId;
        this.vendorMemberName = "";
    }

    public VendorBO(Long vendorMemberId, Long vendorRoleId, String vendorMemberName) {
        this.vendorMemberId = vendorMemberId;
        this.vendorRoleId = vendorRoleId;
        this.vendorMemberName = vendorMemberName;
    }

    /**
     * 供应会员Id
     */
    private Long vendorMemberId;

    /**
     * 供应会员角色Id
     */
    private Long vendorRoleId;

    /**
     * 供应会员名称
     */
    private String vendorMemberName;

    public Long getVendorMemberId() {
        return vendorMemberId;
    }

    public void setVendorMemberId(Long vendorMemberId) {
        this.vendorMemberId = vendorMemberId;
    }

    public Long getVendorRoleId() {
        return vendorRoleId;
    }

    public void setVendorRoleId(Long vendorRoleId) {
        this.vendorRoleId = vendorRoleId;
    }

    public String getVendorMemberName() {
        return vendorMemberName;
    }

    public void setVendorMemberName(String vendorMemberName) {
        this.vendorMemberName = vendorMemberName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }

        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        VendorBO vendorBO = (VendorBO) o;
        return vendorMemberId.equals(vendorBO.vendorMemberId) &&
                vendorRoleId.equals(vendorBO.vendorRoleId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(vendorMemberId, vendorRoleId);
    }
}
